<%@ page contentType="application/x-java-jnlp-file" %>

<% 
   // init
   String pdb = request.getParameter("pdb");

   // set defaults
   String type= "PDB";
   String id="1a4a";
   
   if ( pdb != null ) {
   	type ="PDB";
   	if ( pdb.length() > 4 )
      		pdb = pdb.substring(0,4); 
	id = pdb ;	
   }

   String uniprot =request.getParameter("uniprot");
   if ( uniprot != null) {
   	type = "UniProt";
	id = uniprot ;
   }
  // 
//  codebase="file:///nfs/team71/phd/ap3/WORK/DAS/JAVA/spice/WWW/"
%>

<?xml version="1.0" encoding="utf-8"?>
<jnlp
  spec="1.0+"
  codebase="http://www.sanger.ac.uk/Users/ap3/DAS/SPICE/devel/" 
>
  <information>
    <title>The SPICE Application</title>
    <vendor>Sanger Institute</vendor>
    <homepage href="http://www.sanger.ac.uk/Users/ap3/DAS/SPICE/devel/stable.html"/>
    <description>Visualization of protein structures and their annotations.</description>
    <description kind="short">Visualization of protein structures and their annotations.</description>
 
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
    <j2se version="1.4 1.5"/>
    <jar href="spice.jar"                    />
    <property name="javax.xml.parsers.SAXParserFactory"
              value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
    <property name="javax.xml.parsers.DocumentBuilderFactory" 
              value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>

  </resources>
  <application-desc main-class="org.biojava.spice.Spice">
  <argument><%=type%></argument>
  <argument><%=id%></argument>
  <!--<argument>http://dbdeskpro211.dynamic.sanger.ac.uk:8080/dasregistry/services/das_registry</argument>-->
  <argument>http://servlet.sanger.ac.uk:8080/axis/services/das_registry</argument>

 
  </application-desc>
 
</jnlp> 
